package AST;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Listmaker {
	private List<Test> testList = new ArrayList<Test>();

	public Listmaker(List<Test> testList) {
		print();
		this.testList = testList;
	}

	public List<Test> getTestList() {
		return testList;
	}

	public void setTestList(List<Test> testList) {
		this.testList = testList;
	}

	public void print() {
		System.out.println("Listmaker");
	}

	public void genC(PW pw) {
		Iterator<Test> itTest = testList.iterator();

		itTest.next().genC(pw);
		while (itTest.hasNext()) {
			pw.print(", ");
			itTest.next().genC(pw);
		}

	}
}
